
<%
     if(regist.getLogin()==null && regist.getPassword()==null){ 
    %> 
<form method="get">
     <table border="2" bgcolor="#669999" >
       <tr>
         <td>Login</td>
         <td><input type="text" name="login" /> </td>
       </tr>
       <tr>
          <td>password</td>
          <td><input type="text" name="password" /></td>
       </tr>
       <tr>
           
           <td align="center"><input  name="enter" type="submit" value="enter" /> </td>
         
     </form>
            
    
    </table>  
 <%  
         }else{
                if(CMPBean.findUser(regist.getPassword(),regist.getLogin())){
              %>
                 <h3>Login&nbsp;<%=regist.getLogin()%><br></h3>
              <%
                } else{
              %>
                 <jsp:forward page="regist.jsp"></jsp:forward>
              <%
                 } 
              }
              %>